package com.lytoyo.neihanduanzi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lytoyo.neihanduanzi.model.Result;
import com.lytoyo.neihanduanzi.model.blog.BlogCollect;

/**
 * Package:com.lytoyo.neihanduanzi.service
 *
 * @ClassName:BlogCollectService
 * @Create:2025/3/16 12:40
 **/

/**
 * 收藏博客
 */
public interface BlogCollectService extends IService<BlogCollect> {


    /**
     * 添加博客收藏
     * @param blogId
     * @param userId
     * @return
     */
    Result addCollectBlog(Long blogId, Long userId);

    /**
     * 取消收藏博客
     * @param blogId
     * @param userId
     * @return
     */
    Result cacelCollectBlog(Long blogId, Long userId);
}
